﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WebShopDAL
{
    public class CartArticle
    {
        public string ArticleName { get; set; }
        public double UnitPrice { get; set; }
        public int Quantity { get; set; }

        public CartArticle(int articleID, int quantity)
        {
            var article = ArticleDB.GetArticleByArticleID(articleID);
            ArticleName = article.ArticleName;
            UnitPrice = article.UnitPrice;
            Quantity = quantity;
        }
        public CartArticle()
        {

        }

    }
}
